﻿/* *************************************************************************
 * Copyright (c)2012 NTT DATA BEEN (China) Information Technology Co.,Ltd.
 * 作成者  ：gaoyunpeng
 * 機能概要：
 * 改訂履歴：
 * 2012/6/13 新規 gaoyunpeng
 * *************************************************************************/


using System.ComponentModel;
using System.Configuration;
using System.Reflection; 

namespace NTTDATA.BEENChina.ResultCertification.Host.WindowsService 
{
 
    [RunInstaller(true)]
    public partial class ProjectInstaller : System.Configuration.Install.Installer
    {
        public ProjectInstaller()
        {
            InitializeComponent();

            Configuration appconfig = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location);
            HostConfig config = appconfig.GetSection("hostConfig") as HostConfig;
            this.serviceInstaller1.Description = config.Description;
            this.serviceInstaller1.DisplayName =config.DisplayName;
            this.serviceInstaller1.ServiceName = config.ServiceName;
        }
    }
}
